import 'package:equatable/equatable.dart';

abstract class Failure extends Equatable {
  @override
  List<Object?> get props => [];
}

class ServerFailure extends Failure {}

class CacheFailure extends Failure {}


class WidgetFailure {
  const WidgetFailure(this.message);
  final String message;
  @override
  String toString() {
    return message;
  }
}
